//获取应用实例
const app = getApp()
Component({
  properties: {
    params: {
      type: String,
      value:'12356',
      observer (newValue, oldValue) {
        console.log(newValue +':'+typeof newValue + '--------------' + oldValue + ':' + typeof oldValue)
      }
    },
    scene:{
      type:String,
      value:'index/index',
      observer (newValue, oldValue) {
        console.log(newValue +':'+typeof newValue + '--------------' + oldValue + ':' + typeof oldValue)
        console.log(this.properties)
      }
    }
  },
  data: {

  },
  created () {
    console.log(this.data);
  },
  attached () {

    console.log(3);
  },
  ready () {

    this.selectQuery('.value');
  },
  methods: {
    selectQuery(parm){
      var query = wx.createSelectorQuery().in(this)
      query.select(parm).boundingClientRect(function (res) {
        console.log(res)
      }).exec()
    },
    onLoad: function() {
     console.log(this.data)
    }

  }
})

